package com.share.sharedevice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.sharedevice.entity.Station;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StationMapper extends BaseMapper<Station> {

    /**
     * 查询站点列表
     * @param station
     * @return
     */
    List<Station> selectStationList(Station station);

    /**
     * 根据站点id查询站点信息
     * @param id
     * @return
     */
    Station getByStationId(Long id);

    /**
     * 批量删除站点
     * @param ids
     */
    void deleteByIds(@Param("ids") List<Long> ids);

    /**
     * 添加站点
     * @param station
     */
    void add(Station station);

    /**
     * 修改站点信息
     * @param station
     */
    void updateByStationId(Station station);
}
